#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	char arr1[100] = {0};
	int i = 0;
	while (1)
	{

		getchar(arr1[i]);
	}
		int left = 0; int right = 0;
	while (1)
	{
		
		if(arr1[right] == 0)
			break;
		right++;
	}
	right -= 1;
	for (left=0;left<=right;left++,right--)
	{
		int tmp = arr1[left];
		arr1[left] = arr1[right];
		arr1[right] = tmp;
	}
	printf("%s", arr1);

}